# $Id: PKGBUILD 130730 2011-07-07 22:18:10Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=xorg-smproxy
pkgver=1.0.5
pkgrel=1
pkgdesc="Allows X applications that do not support X11R6 session management to participate in an X11R6 session"
arch=(i686 x86_64)
url="http://xorg.freedesktop.org/"
license=('custom')
depends=('libsm' 'libxt' 'libxmu')
makedepends=('xorg-util-macros')
groups=('xorg-apps' 'xorg')
source=(http://xorg.freedesktop.org/archive/individual/app/smproxy-${pkgver}.tar.bz2)
sha1sums=('59e19def9a351896cb3101cb580ae424e9e48a3e')

build() {
  cd "${srcdir}/smproxy-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/smproxy-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
